import request from '@/utils/request'

export const blogGetAllService = (title) => request.get("/blog/all",{
  params:{
    title: title
  }
})
export const blogGetByIdService = (blogId) => request.get(`/blog/${blogId}`)
export const blogDeleteByIdService = (blogId) => request.delete(`/blog/${blogId}`)
export const blogGetByAuthorNameService = () => request.get('/blog/author')
export const blogAddService = (blog) => request.post('/blog/add',blog)
export const blogUpdateService = (blog) => request.put('/blog/update',blog)